package com.jiukuaidao.zhulin.module.intro;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.jiukuaidao.zhulin.R;
import com.jiukuaidao.zhulin.module.pay.alipay.PaydemoActivity;

/**
 * Author : PaiTaSuo
 * Date : 2016/5/24
 * Description :
 */
public class ZoomAnimation extends  BaseAppIntro{

    private int index ;
    @Override
    public void init(Bundle savedInstanceState) {
        addSlide(SampleSlide.newInstance(R.layout.intro));
        addSlide(SampleSlide.newInstance(R.layout.intro2));
        addSlide(SampleSlide.newInstance(R.layout.intro3));
        addSlide(SampleSlide.newInstance(R.layout.intro4));

        setZoomAnimation();

        showSkipButton(false);
        setDoneText("");
        Drawable drawable =null ;
        setImageNextButton(drawable);
        setSeparatorColor(0);

    }

    private void loadMainActivity(){
        Intent intent = new Intent(this, PaydemoActivity.class);
        startActivity(intent);
    }

    @Override
    public void onSkipPressed() {
        //loadMainActivity();
        //Toast.makeText(getApplication Context(), getString(R.string.skip), Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onNextPressed() {
        Toast.makeText(this,"onnext",Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onDonePressed() {
      //  loadMainActivity();
    }

    @Override
    public void onSlideChanged() {
    }

    public void getStarted(View v){
       loadMainActivity();
    }

}
